﻿using IM.Easy.Core.Audit;
using SqlSugar;

namespace IM.Easy.Entity.System
{
    /// <summary>
    /// 字典数据表
    /// </summary>
    [SugarTable(TableDescription = "字典数据表")]
    public class SysDictData : AuditSnowflakeEntity, ISystem, IOrderable, IActive
    {
        public SysDictData()
        {
            IsActive = true;
            IsSystem = true;
        }
        /// <summary>
        /// 字典键值
        /// </summary>
        [SugarColumn(Length = 100)]
        public string Value { get; set; }

        /// <summary>
        /// 字典类型
        /// </summary>
        [SugarColumn(Length = 100)]
        public string Group { get; set; }

        /// <summary>
        /// 字典标签
        /// </summary>
        [SugarColumn(Length = 100)]
        public string Label { get; set; }


        /// <summary>
        /// 样式属性（其他样式扩展）
        /// </summary>
        [SugarColumn(Length = 100)]
        public string? CssClass { get; set; }

        /// <summary>
        /// 表格回显样式
        /// </summary>
        [SugarColumn(Length = 100)]
        public string? ListClass { get; set; }

        /// <summary>
        /// 主题样式（仅针对标签有效）
        /// </summary>
        [SugarColumn(Length = 100)]
        public string? ThemeClass { get; set; }

        /// <summary>
        /// 是否为系统默认值
        /// </summary>
        public bool IsSystem { get; set; }

        /// <summary>
        /// 排序值
        /// </summary>
        public int Order { get; set; }

        /// <summary>
        /// 启用状态
        /// </summary>
        public bool IsActive { get; set; }
    }
}
